$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'test/unit'
require "snippet"

module LWA
  class SnippetTest < Test::Unit::TestCase

    def test_create_step_list_without_valueset
      assert_equal 6, LWA::TestCaseDoc.new("sample_testcase.xml").get_case(5).step_list.first.steps.length
    end

    def test_create_step_list_with_valueset
      sl = LWA::TestCaseDoc.new("sample_testcase.xml").get_case(6).step_list.first.steps
      assert_equal 3, sl.length
      assert_equal "http://g.cn", sl[0].value
    end

  end
end